<?php


namespace app\index\business;


use app\common\model\Trade;
use app\common\model\TradeChild;

class tradeBus
{
    public $tradeMode = null;
    public $tradeChildMode = null;
    public function __construct()
    {
        $this->tradeMode = new Trade();
        $this->tradeChildMode = new TradeChild();
    }
    public function getTradeChildByWhereBus($where){
        $result = $this->tradeChildMode->getTradeChildByWhere($where);
        if(empty($result)){
            throw new \think\Exception('未查询到数据');
        }
        return $result;
    }

    public function getTradeListBus(){
        $res = $this->tradeMode->getTradeList();
        return $res;
    }
}